package cn.com.greatwall.system.modules.system.service;

import cn.com.greatwall.tools.domain.vo.EmailVo;

/** 
* @Author herw
* @Time 2020-07-23 4:56:46 PM 
* @Version 1.0
* @Description:
*/
public interface VerifyService {
    /**
     * 发送验证码
     * @param email
     * @param key
     * @return
     */
    EmailVo sendEmail(String email, String key);
    
    /**
     * 验证
     * @param key
     * @param code
     */
    void validated(String key, String code);
}
